@echo off
echo Example of how to use NCover from the command line.

echo [Clean]
del /Q target
mkdir target

echo [Instrument]
nrecover\bin\Debug\nrecover /report-name:"NCover" 
ncover-console\bin\Debug\ncover-console /report-name:"NCover" /recurse:src\*.cs 

echo [Compile]
rem You'll need to also reference NCover.dll here (we don't as that's what we're building)

csc /debug /target:library /out:target\ncover.dll /resource:src\Report.xslt /recurse:src\*.cs 

csc /debug /target:library /out:target\ncover-tests.dll /reference:lib\nunit.framework.dll /reference:target\ncover.dll /recurse:tests\*.cs 

echo [Test]
lib\nunit-console target\ncover-tests.dll

echo [Report]
ncoverreport\bin\Debug\ncoverreport /actual:"target/actual.xml" /report-name:"NCover" /minimum:60 /history-file:"history.xml" 

echo [Deinstument]
nrecover\bin\Debug\nrecover /report-name:"NCover" 